import request from '@/utils/request2'
import qs from 'qs'

export function getNextNodeFaWen(taskId) {
  return request({
    url: '/api/oa/office/process-instance/getNextNode/'+taskId,
    method: 'POST'
  })
}
export function getNextNodeAndExecuteActivity(data) {
  return request({
    url: '/api/oa/office/executeActivity/',
    method: 'POST',
    headers: {
      'Content-Type': 'application/json'
    },
    data: JSON.stringify(data)
  })
}
export function completeActivity(taskId) {
  return request({
    url: '/api/oa/office/completeActivity/'+taskId,
    method: 'POST',
  })
}
export function completeActivityOrNo(taskId) {
  return request({
    url: '/api/oa/office/completeActivityOrNo/'+taskId,
    method: 'POST',
  })
}
export function completeActivitySignOnly(taskId) {
  return request({
    url: '/api/oa/office/completeActivitySignOnly/'+taskId,
    method: 'POST',
  })
}
